package com.zjy.software.day7.mvc;

import com.zjy.software.day7.mvc.bean.Pc;
import com.zjy.software.day7.mvc.service.PcService;
import com.zjy.software.day7.mvc.service.impl.PcServiceImpl;

public class MVCTest {
public static void main(String[] args){
    PcService pcService = new PcServiceImpl();
    //test 新增方法
    Pc pc = new Pc(1," dell");

    //调用servcie进行添加pc到持久层(包括数据库,文件,数组)
    pcService.addPc(pc);
    pcService.addPc(pc);
    pcService.addPc(pc);
    pcService.addPc(pc);
    pcService.addPc(pc);

}
}
